package com.cyx.gametool.cons;

public enum MenuTabFxml {
    menuItem1_1("刷表工具", "excel-config-view.fxml"),
    menuItem1_2("时间工具", "excel-config-view.fxml"),
    ;


    private final String name;
    private final String fxml;

    MenuTabFxml(String name, String fxml) {
        this.name = name;
        this.fxml = fxml;
    }

    public static MenuTabFxml getByName(String name) {
        for (MenuTabFxml menuTabFxml : MenuTabFxml.values()) {
            if (menuTabFxml.getName().equals(name)) {
                return menuTabFxml;
            }
            return null;
        }
        return null;
    }

    public String getName() {
        return name;
    }

    public String getFxml() {
        return fxml;
    }
}
